const Koa = require('koa')
const app = new Koa()

const Mduration = require('./middleware/duration')
app.use(Mduration)

const Mheader = require('./middleware/header')
app.use(Mheader)

const Mdata = require('./middleware/data')
app.use(Mdata)


app.listen(9999)

const websocket = require('./websocket')
websocket.listen()